package com.scuec.tourismwebsite.service;

import com.scuec.tourismwebsite.entity.PostFavorite;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PostFavoriteService {
    public int insertPostFavorite(@Param("user_id") int user_id, @Param("post_id") int post_id);
    public int deletePostFavorite(@Param("user_id") int user_id, @Param("post_id") int post_id);
    public List<PostFavorite> selectPostFavoriteById(@Param("user_id") int user_id, @Param("post_id") int post_id);
    List<PostFavorite> getUserFavorites(Integer user_id);
}
